package com.mzy.designMode.singletonPattern;

import java.io.IOException;
import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/6/6 10:02
 * @Version 1.0
 */
public class TestProperties {
    public static void main(String[] args) throws IOException {
        PropertiesLoader propertiesLoader = PropertiesLoader.getInstance();

        String port_str = propertiesLoader.getOneProp("server.port");
        System.out.println("port:" + port_str);

        Properties properties = propertiesLoader.getProperties();
        properties.setProperty("server.port", "1885");
        propertiesLoader.setProperties(properties);
    }

}
